<?php

/**
 * This is the model class for table "contact".
 */
require_once(dirname(__FILE__).'/base/ContactBase.php');
class Contact extends ContactBase
{
      protected function beforeSave()
      {
          if($this->getIsNewRecord())
          {
              $this->creationdatetime = date('Y-m-d H:i:s');
          }
          return parent::beforeSave();
      }
}